package com.ymatou.iapi.fastturnover.service;

import org.json.JSONException;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*关闭配置Call
*FreeMaker Template自动生成代码
*/
public class closeCall extends YmatouBaseCall{
	private static String opurl ="/api/config/close";
	
	public closeCall() {
		super(EnvSetup.getSystemUrl("fastturnover_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	
	 public String getCode1()
		{
		  return getString("code");
		}
		
		 public String getMessage()
		{
		 return getString("msg");
		}
		
		
		public String getResult() throws JSONException
		{
		  return getString("result");
		}
}